//
//  CALFood.m
//  CalCounter
//
//  Created by Toanpro on 9/7/13.
//  Copyright (c) 2013 Le thanh Lam. All rights reserved.
//

#import "CALFood.h"

@implementation CALFood
- (BOOL)isEqual:(id)object{
    if([object isKindOfClass:[CALFood class]]){
        return self.foodId == [(CALFood *)object foodId];
    }
    return NO;
}

- (NSString *)foodImage{
    if([_foodImage length] == 0)
        return @"food_default.png";
    return _foodImage;
}
@end
